﻿using System;
using System.Collections.Generic;
using System.Text;

namespace BaseData.Common
{
    public class Kernel
    {
        /// <summary>
        /// 取得数值
        /// </summary>
        public static decimal GetDecimalFromObject(object o)
        {
            decimal d = 0;
            if (o != null && o != DBNull.Value)
            {
                decimal.TryParse(o.ToString(), out d);
            }
            return d;
        }
    }
}
